﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%@ Import Namespace="LangMauViet.Models.Entity" %>
<%@ Import Namespace="LangMauViet.Models.Service" %>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Blueprint: Slide and Push Menus" />
<meta name="keywords" content="sliding menu, pushing menu, navigation, responsive, menu, css, jquery" />
<meta name="author" content="Codrops" />
<%--<link rel="stylesheet" type="text/css" href="/CSS/jquery.mmenu.css" />
<script src="/JS/jquery.mmenu.min.js" type="text/javascript"></script>
<link href="/CSS/video-js.css" rel="stylesheet" type="text/css">
<script src="/JS/video.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="/App_Themes/Main.Wap/css/main.wap.css" />--%>
<link href="/CSS/style.css" rel="stylesheet" type="text/css">
<%--<script type="text/javascript">
    $(function () {
        $('nav#menu').mmenu({
            slidingSubmenus: false
        });
    });
</script>--%>
<% CategoryService s1 = new CategoryService();
   List<Category> imageCategory = s1.GetCategory(0, 1);
   List<Category> newsCategory = s1.GetCategory(0, 3);
   List<Category> musicCategory = s1.GetCategory(0, 8);
   List<Category> videoCategory = s1.GetCategory(0, 9); 
%>
<%--<div class="head_wap_main left">
    <nav id="menu">
				<ul>
					<li><a href="/">Trang chủ</a></li>
                    
                    <% if (imageCategory != null)
                       {%>
                       <li><a href="/">Ảnh</a>
                        <ul>
                          <% foreach (Category cate in imageCategory)
                             {%> 
                            <li>
                            <%if (cate.IsLeaf == 1)
                              { %>
                            <a href="/Category/ImageByCategory?categoryId=<%=cate.CategoryId %>"><%=cate.Name%></a>
                            <%}
                              else
                              { %>
                              <%=cate.Name%>
                                <%} if (cate.IsLeaf == 0)
                              {
                                  List<Category> pListCate2 = s1.GetCategory(cate.CategoryId, 1);
                                  if (pListCate2 != null)
                                  {%>
                                        <ul>
                                          <%foreach (Category cate2 in pListCate2)
                                            { %>
                                            <li>
                                            <%if (cate2.IsLeaf == 1)
                                              { %>
                                            <a href="/Category/ImageByCategory/<%=cate2.CategoryId %>"><%=cate2.Name%></a>
                                            <%}
                                              else
                                              { %>
                                                <%=cate2.Name%>
                                              <%} %>
                                            </li>
                                         <% }%>
                                         </ul>
                                      <%}
                              } %>
                                  </li>
                           <%}%>
                            </ul></li>
                       <%} %>
                    
                    <% if (newsCategory != null)
                       {%>
                        <li><a href="/">Tin tức</a>
                        <ul>
                          <% foreach (Category cate in newsCategory)
                             {%> 
                            <li>
                                <% if (cate.IsLeaf == 1)
                                   { %>
                            <a href="/Category/NewsByCategory?categoryId=<%= cate.CategoryId %>"><%= cate.Name %></a>
                            <% }
                                   else
                                   { %>
                              <%= cate.Name %>
                                <%
                                   }
                                   if (cate.IsLeaf == 0)
                                   {
                                       List<Category> pListCate2 = s1.GetCategory(cate.CategoryId, 3);
                                       if (pListCate2 != null)
                                       {%>
                                        <ul>
                                          <%foreach (Category cate2 in pListCate2)
                                            { %>
                                            <li>
                                                <%if (cate2.IsLeaf == 1)
                                                  { %>
                                            <a href="/Category/NewsByCategory/<%=cate2.CategoryId %>"><%=cate2.Name%></a>
                                            <%}
                                                  else
                                                  { %>
                                                <%=cate2.Name%>
                                              <%} %>
                                            </li>
                                         <% }%>
                                         </ul>
                                      <%}
                                   } %>
                                  </li>
                           <%}%>
                            </ul></li>
                       <%} %>
                    
                    <% if (musicCategory != null)
                       {%>
                       <li><a href="/">Âm nhạc</a>
                       <ul>
                          <% foreach (Category cate in musicCategory)
                             {%> 
                            <li><a href=""><%=cate.Name %></a>
                                <%if (cate.IsLeaf == 0)
                                  {
                                      List<Category> pListCate2 = s1.GetCategory(cate.CategoryId, 8);
                                      if (pListCate2 != null)
                                      {%>
                                        <ul>
                                          <%foreach (Category cate2 in pListCate2)
                                            { %>
                                            <li><a href=""><%=cate2.Name %></a></li>
                                         <% }%>
                                         </ul>
                                      <%}
                                  } %>
                                  </li>
                           <%}%>
                            </ul></li>
                       <%} %>

                    
                    <% if (videoCategory != null)
                       {%>
                       <li><a href="/">Video</a>
                       <ul>
                          <% foreach (var cate in videoCategory)
                             { %> 
                            <li>
                                <% if (cate.IsLeaf == 1)
                                   { %>
                            <a href="/Category/VideoByCategory?categoryId=<%= cate.CategoryId %>"><%= cate.Name %></a>
                            <% }
                                   else
                                   { %>
                              <a href="#"><%= cate.Name %></a>
                                <%
                                   }
                                   if (cate.IsLeaf == 0)
                                   {
                                       List<Category> pListCate2 = s1.GetCategory(cate.CategoryId, 9);
                                       if (pListCate2 != null)
                                       { %>
                                        <ul>
                                          <% foreach (Category cate2 in pListCate2)
                                             { %>
                                            <li>
                                                <% if (cate2.IsLeaf == 1)
                                                   { %>
                                            <a href="/Category/VideoByCategory/<%= cate2.CategoryId %>"><%= cate2.Name %></a>
                                            <% }
                                                   else
                                                   { %>
                                                <a href="#"><%= cate2.Name %></a>
                                              <% } %>
                                            </li>
                                         <% } %>
                                         </ul>
                                      <% }
                                   }
                              %>
                                  </li>
                           <%}%>
                            </ul></li>
                       <%} %>
                       
					
				</ul>
			</nav>

    <div class="container left">
        <div class="main">
            <div id="header" align="center">
                <a href="#menu" style="background: center center no-repeat transparent; background-image: url(/App_Themes/Main.Wap/images/menu.png);
                    display: block; width: 85px; height: 80px; margin: 0 auto;"></a>
            </div>
            <!-- <section>
					
					
					<button id="showLeft" ><img src="/App_Themes/Main.Wap/images/menu.png" alt=""/> Menu</button>					
				</section>        -->
        </div>
    </div>
    <div class="left wap_logo">
        <a href="/"><img src="/App_Themes/Main.Wap/images/logo.png" alt="" width="120" height="100" /></a></div>
    <div class="wap_search right">
        <img src="/App_Themes/Main.Wap/images/search_main.png" alt="" width="85" height="80" /></div>
    <div class="wap_login right">
        <img src="/App_Themes/Main.Wap/images/user_login.png" alt="" width="85" height="80" /></div>
</div>
<div class="wap_ani_search">
    <input type="text" name="txtsearch" class="inputsearch" placeholder="Tìm kiếm" />
    <a href="javascript:void(0);" onclick="return SubmitSearch();">
            <img src="/App_Themes/Main.Wap/Images/search_main.png" class="mright15 mtop15 right"
                width="50" height="50" /></a>
</div>--%>
<%string activeLink = HttpContext.Current.Request.RawUrl.ToLower(); %>
<div id="header">
    <div class="left">
        <a href="/">
            <img src="/CSS/images/logo3.png" width="40" height="40"></a></div>
    <div class="right">
        <a class="home" href="#" title=""><span></span></a><a class="search" href="#" title="Tìm kiếm">
            <span></span></a>
    </div>
    <div class="clearfix">
    </div>
</div>
<div class="bottom">
    <div class="clearfix">
    </div>
</div>
<div id="userbar">
    Không nhận diện được thuê bao <a href="/Account/Login">Đăng nhập</a><table
        width="100%">
        <tbody>
            <tr>
            </tr>
        </tbody>
    </table>
</div>
<div id="mainmenu">
    <table cellpadding="0" cellspacing="0">
        <tbody>
            <tr style="margin: 0;">
                <td>
                    <a href="/" title="TRANG CHỦ">HOME</a>
                </td>
                <td class='<%=activeLink.Contains("newsbycategory")?"active" :"" %>'>
                   <a href='/Category/NewsByCategory'> TIN TỨC</a>
                   
                </td>
                <td class='<%=activeLink.Contains("imagebycategory")?"active" :"" %>'>
                    <a href="/Category/ImageByCategory" title="Hình ảnh">HÌNH ẢNH</a>
                </td>
                <td class='<%=activeLink.Contains("videobycategory")?"active" :"" %>'>
                    <a href="/Category/VideoByCategory" title="Video">VIDEO</a>
                </td>
            </tr>
        </tbody>
    </table>
</div>
<div class="breadcrumb">
    <ul>
        <li class="end"><a href="/" title="TRANG CHỦ">Trang chủ</a></li>
    </ul>
</div>
<div class="clearfix" style="height: 0;">
</div>

<div class="clearfix">
</div>

